package com.lc.service.system;

import java.util.List;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import com.lc.entity.Page;
import com.lc.entity.system.User;
import com.lc.provider.system.UserProvider;

@Component
public class UserService {

	@Reference
	private UserProvider userProvider;

	public User selectOne(Object obj) {
		return userProvider.selectOne(obj);
	}

	public List<User> select(Object obj) {
		return userProvider.select(obj);
	}

	public PageInfo<User> selectByPage(Object obj, Page page) {
		return userProvider.selectByPage(obj, page);
	}
	
	public int insert(User t) {
		return userProvider.insert(t);
	}
	
	public int update(User t) {
		return userProvider.update(t);
	}
	
	public int delete(Object obj) {
		return userProvider.delete(obj);
	}


}
